﻿using SportsPlatform.BaseModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SportsPlatform.Model.PermissionManagement
{
    /// <summary>
    /// 角色功能对应表，角色拥有什么功能有什么操作，没有操作可以默认一个表示无
    /// </summary>
    [Table("PM_RoleFunction")]
    public class RoleFunction : BaseModel
    {
        /// <summary>
        /// 角色Id
        /// </summary>
        public Guid RoleId { get; set; }

        /// <summary>
        /// 功能Id
        /// </summary>
        public Guid FunctionId { get; set; }

        /// <summary>
        /// 操作Id
        /// </summary>
        public Guid? OperationId { get; set; }

        /// <summary>
        /// 状态，是否启用
        /// </summary>
        public bool States { get; set; }
    }
}
